﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;

namespace ClockInLearning.Db
{
    public class PointsRegistRecord : BaseEntity<Guid>
    {
        public Guid UserId { get; set; }
        public Guid RegisterId { get; set; }
        public OperationTypeEnum OperationType { get; set; }
        public RegistTypeEnum RegistType { get; set; }
        public DateTime RegistTime { get; set; }
        public int RegistDuration { get; set; }
        public int Points { get; set; }
        public string Remark { get; set; }
    }

    public enum RegistTypeEnum
    {
        [Description("个人")]
        Privte,
        [Description("监督")]
        Supervise
    }

    public enum OperationTypeEnum
    {
        [Description("增加")]
        Add,
        [Description("使用")]
        Use
    }
    
}
